<h1>Listing sections</h1>

<table>
  <tr>
    <th>Vote</th>
    <th>Title</th>
    <th>Subtitle</th>
    <th>Instruction</th>
    <th>Note</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @sections.each do |section| %>
  <tr>
    <td><%= section.vote_id %></td>
    <td><%= section.title %></td>
    <td><%= section.subtitle %></td>
    <td><%= section.instruction %></td>
    <td><%= section.note %></td>
    <td><%= link_to 'Show', section %></td>
    <td><%= link_to 'Edit', edit_section_path(section) %></td>
    <td><%= link_to 'Destroy', section, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Section', new_section_path %>
